package com.dk.controller;

import com.dk.service.item.ItemPageService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;

@Controller
@RequestMapping("itemPage")
public class ItemPageController {

    @Resource
    private ItemPageService itemPageService;

    @RequestMapping("freemarkerItemPage")
    @ResponseBody
    public String freemarkerItemPage(Long goodsId) {
        itemPageService.freemarkerItemPage(goodsId);
        return "ok";
    }
}
